package com.lipeng.bean;

/**
 * Created by dllo on 18/2/1.
 */
public class Person {
    private  Integer pid;
    private String name;
    private String hobby;
    public Person(){
    }

    public Person(Integer pid, String name, String hobby) {
        this.pid = pid;
        this.name = name;
        this.hobby = hobby;
    }

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getHobby() {
        return hobby;
    }

    public void setHobby(String hobby) {
        this.hobby = hobby;
    }

    @Override
    public String toString() {
        return "Person{" +
                "pid=" + pid +
                ", name='" + name + '\'' +
                ", hobby='" + hobby + '\'' +
                '}';
    }

    public static void main(String[] args) {
        Person person = new Person();
        person.setPid(1);
        System.out.println(person);
        //注释
    }
}
